<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    <h1>首页</h1>
    <h3>thymeleaf</h3>
    <p th:text="${name}">默认显示</p>
    <p th:text="${time}">时间占位</p>
    <div th:text="${sample}">样例代码</div>
    <!--不转义显示-->
    <div th:utext="${sample}">样例代码</div>
    <ul>
       <li th:each="book:${books}" th:text="${book}"></li>
    </ul>
</body>
</html>